Use the If Activity

Note: Use caution when building or editing a workflow. For further advice or to arrange training, contact your professional services consultant.

The If activity is a branching action that can be used to specify a condition where the outcome is either true or false.

The If activity is located in the Control Flow section of the Microsoft Toolbox.

Note: The minimum requirement for the If activity is Condition.

The If activity consists of the following properties.

Section This field Holds this information...
Misc Condition

The Visual Basic (VB) expression where the outcome is either true or false.

DisplayName

The title of the activity.

Note: The DisplayName property is set to If by default.

Then The activity triggered if the condition is true.
Else The activity triggered if the condition is false.

Clicking the ellipsis button adjacent to the relevant field opens the Expression Editor, where you can enter the relevant code in the Visual Basic (VB) format.

Back to top